//////////////////////////////////////////////////////////////////////////
// FileName:Systems
// CreateBy:DragonXiong
// CreateDate:2009-5-4
// Description:
//		Class Systems,table _Systems
//      
// Modify Log:090609:Format parameter of functions --dragonxiong
//            090819:Change the region Node Location	
//
// Copyright:ASL-MIS
/////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using DAL = Auto.Data.Systems.DAL;
using Model = Auto.Data.Systems.Model;
using System.Data;

namespace Auto.Data.Systems.BLL
{
    /// <summary>
    /// _Systems
    /// </summary>
    public class Systems
    {

        private readonly DAL.Systems dal = new DAL.Systems();

        #region --New--
        /// <summary>
        /// Get model
        /// </summary>
        /// <param name="sysID">The system ID.</param>
        /// <returns>Model.Systems</returns>
        public Model.Systems GetModel(string sysID)
        {
            return dal.GetModel(sysID);//.FindBySysID(sysID);
            
        }
        #endregion --New--

        #region --Operate--
        /// <summary>
        /// Existses the specified sys ID.
        /// </summary>
        /// <param name="sysID">The sys ID.</param>
        /// <returns>Exists or not.</returns>
        public bool Exists(string sysID)
        {
            return dal.Exists(sysID);
        }
        #endregion --Operate--


        #region --SQL--
        /// <summary>
        /// Inserts this instance.
        /// </summary>
        /// <returns>bool</returns>
        public bool Insert(Model.Systems systems)
        {
            return dal.Insert(systems);
        }
        /// <summary>
        /// Delete information by sysID
        /// </summary>
        /// <param name="sysID">The system ID.</param>
        /// <returns>bool</returns>
        public bool Delete(string sysID)
        {
            return dal.Delete(sysID);
        }
        /// <summary>
        /// Updates this instance.
        /// </summary>
        /// <returns>bool</returns>
        public bool Update(Model.Systems systems)
        {
            return dal.Update(systems);

        }
        #endregion --SQL--

        #region --GetData--
        /// <summary>
        /// Selects this instance.
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable GetSystems()
        {
            return dal.GetSystems();
        }
        #endregion --GetData--

    }
}
